package c.h.a.n0;

import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListener;
import com.liuzh.deviceinfo.view.StarAnimView;
import java.util.Objects;

/* compiled from: lambda */
public final /* synthetic */ class f implements AnimatorUpdateListener {
    public final /* synthetic */ StarAnimView a;

    public /* synthetic */ f(StarAnimView starAnimView) {
        this.a = starAnimView;
    }

    public final void onAnimationUpdate(ValueAnimator valueAnimator) {
        StarAnimView starAnimView = this.a;
        Objects.requireNonNull(starAnimView);
        starAnimView.b = ((Integer) valueAnimator.getAnimatedValue()).intValue();
        float animatedFraction = valueAnimator.getAnimatedFraction();
        double d = (double) animatedFraction;
        if (d > 0.7d && d <= 0.9d) {
            starAnimView.d = (int) (((0.7d - d) / 0.2d) * 255.0d);
        }
        if (d >= 0.8d) {
            starAnimView.c = (int) ((((double) (1.0f - animatedFraction)) / 0.2d) * 255.0d);
        }
        starAnimView.invalidate();
    }
}
